package com.bandit.service.impl;

import com.bandit.mapper.MsgTypeMapper;
import com.bandit.pojo.MsgType;
import com.bandit.service.MsgTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MsgTypeServiceImpl implements MsgTypeService {

    @Autowired
    MsgTypeMapper msgTypeMapper;

    @Override
    public MsgType selectMsgTypeByTypeID(int typeID) {
        return msgTypeMapper.selectMsgTypeByTypeID(typeID);
    }

    @Override
    public List<MsgType> selectMsgTypeList(MsgType msgtype) {
        return msgTypeMapper.selectMsgTypeList(msgtype);
    }

    @Override
    public int insertMsgType(MsgType msgtype) {
        return msgTypeMapper.insertMsgType(msgtype);
    }

    @Override
    public int updateMsgType(MsgType msgtype) {
        return msgTypeMapper.updateMsgType(msgtype);
    }

    @Override
    public int deleteMsgTypeByTypeID(int typeID) {
        return msgTypeMapper.deleteMsgTypeByTypeID(typeID);
    }

    @Override
    public int deleteMsgTypeByTypeIDs(int[] typeIDs) {
        return msgTypeMapper.deleteMsgTypeByTypeIDs(typeIDs);
    }
}
